#include "block.h"
#include <iostream.h>

Block createBlock1()
{
	Block block;

	block.addWord('A', 1);
	block.addWord('B', 2);
	block.addWord('C', 3);
	block.addWord('D', 4);
	return block;
}

Block createBlock2()
{
	Block block;

	block.addWord('E', 5);
	block.addWord('F', 6);
	block.addWord('G', 7);
	block.addWord('H', 8);
	block.addWord('I', 9);
	block.addWord('J', 10);
	block.addWord('K', 11);
	block.addWord('L', 12);
	block.addWord('M', 13);
	block.addWord('N', 14);
	block.addWord('O', 15);
	block.addWord('P', 16);
	return block;
}

Block createBlock3()
{
	Block block;

	block.addWord('Q', 17);
	block.addWord('R', 18);
	block.addWord('S', 19);
	block.addWord('T', 20);
	block.addWord('U', 21);
	block.addWord('V', 22);
	block.addWord('W', 23);
	block.addWord('X', 24);
	block.addWord('Y', 25);
	block.addWord('Z', 26);
	return block;
}

void print(Block &block)
{
	for (Word *word = block.begin(); word != block.end(); word++) {
		cout << "word: (" <<  word->getAddress() << ", " << word->getValue() << ")" << endl;
	}
}

int main()
{
	Block block = createBlock1();
	print(block);
	block = createBlock2();
	print(block);
	block = createBlock3();
	print(block);
	return 0;
}
